#encoding=utf-8
#!/usr/bin/python



import os 
import wsgiref.handlers

from google.appengine.ext import webapp
from google.appengine.ext.webapp import template
from google.appengine.api import users

class MainPage(webapp.RequestHandler): 
  def get(self): 

 
    template_values = { 
      'greetings': [{'author':'jack','content':'xixi'},{'author':'ug','content':'cax'}], 
      'url': '#', 
      'url_linktext': __file__, 
      } 
 
    path = os.path.join(os.path.dirname(__file__)+'/views', 'helloweb.html') 
    page_str = template.render(path, template_values)
    print page_str
    #self.response.out.write(page_str)

if __name__ == "__main__":
    page = MainPage()
    page.get()